草庐IT

Android Build.gradle DuplicateFileException 错误

全部标签

ruby - 我在 Mac OS X 上收到 "RVM is not a function"错误,并且没有发布的解决方案有效

我在MacOSx10.8.2(“MountainLion”)上,我成功安装了RVM1.17.8及其依赖项。我可以使用它来使用rvminstall1.9.2安装Ruby版本,但我无法执行rvmuse没有收到此错误:RVMisnotafunction,selectingrubieswith'rvmuse...'willnotwork.Youneedtochangeyourterminalemulatorpreferencestoallowloginshell.Sometimesitisrequiredtouse`/bin/bash--login`asthecommand.Pleasevis

ruby - 如何捕获由对等方重置的错误连接 (Errno::ECONNRESET)

以下代码有时会生成“连接被对等方重置”错误。谁能告诉我如何处理这个异常?doc=Nokogiri::HTML(open(url))Connectionresetbypeer(Errno::ECONNRESET) 最佳答案 要捕获它,就像处理任何其他异常一样:begindoc=Nokogiri::HTML(open(url))rescueErrno::ECONNRESET=>eputs"wearehandlingit!"end更有用的模式是尝试几次,然后放弃:count=0begindoc=Nokogiri::HTML(open(ur

ruby - 在 Ubuntu 中全新安装 RVM 不允许我安装 gems(zlib 错误)

好的,我刚刚使用VirtualBox在Windows7上创建了一个全新的Ubuntu11.04安装(不确定这是否重要,但仅供引用)列出我得到的ruby:aaron@aaron-VirtualBox:~$rvmlistrvmrubies=>ruby-1.9.2-p290[x86_64]然后尝试安装railsgem我得到了这个:aaron@aaron-VirtualBox:~$geminstallrailsERROR:Loadingcommand:install(LoadError)nosuchfiletoload--zlibERROR:Whileexecutinggem...(NameE

ruby - Octopress 将错误推送到 GitHub

我正在尝试将octopress推送到github页面,到目前为止一切正常,但是当我在显示octopress文件后执行rakedeploy命令时,出现以下错误Togit@github.com:rukshn/rukshn.github.io.git![rejected]master->master(non-fast-forward)error:failedtopushsomerefsto'git@github.com:rukshn/rukshn.github.io.git'hint:Updateswererejectedbecausethetipofyourcurrentbranchisb

ruby-on-rails - 如何修复 Mavericks 上 Gemfile 的 libv8 错误?

当我运行bundleinstall时,我得到了Anerroroccurredwhileinstallinglibv8(3.11.8.17),andBundlercannotcontinue.Makesurethat`geminstalllibv8-v'3.11.8.17'`succeedsbeforebundling.Libv8是lunchy和therubyracergems的依赖项。我已经在3.11.8.17上锁定了我的Gemfile.locklibv8gem但是我发现我可以降级到3.3.10.4bundleinstall/update:libv8(therubyracer)inst

ruby - 加载错误机架/测试

运行测试文件时出现以下错误。$rubytest/test_gothonweb.rb/Users/sony/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require':cannotloadsuchfile--rack/test(LoadError)from/Users/sony/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`requir

ruby-on-rails - Rails 5 Heroku 部署错误:ExecJS::ProgramError: SyntaxError: 意外的 token :名称(autoRegisterNamespace)

尝试将Rails5应用程序部署到heroku时,出现以下错误,当它到达Running:rakeassets:precompile时:remote:ExecJS::ProgramError:SyntaxError:Unexpectedtoken:name(autoRegisterNamespace)(line:14767,col:7,pos:457487)remote:Errorremote:atnewJS_Parse_Error(:3623:11948)remote:atjs_error(:3623:12167)remote:atcroak(:3623:21858)remote:att

ruby-on-rails - RVM ruby​​ 安装错误 - Mac

我尝试通过RVM安装以下三个版本的Ruby,每个版本都有自己的一组错误。我更关心让最后一个工作,所以我会专注于此。rvminstall1.8.7rvminstall1.9.2rvminstall1.9.3rvminstall1.9.3(bash输出)14:10:41:~/.rvm/config$rvminstall1.9.3Fetchingyaml-0.1.4.tar.gzto/Users/dionnesaunders/.rvm/archivesExtractingyaml-0.1.4.tar.gzto/Users/dionnesaunders/.rvm/srcERROR:Errorr

ruby - 错误 : Error installing ffi: ERROR: Failed to build gem native extension

安装了DevKit并重新运行ffi安装…。将其作为输出:C:\DocumentsandSettings\******>geminstallffiTemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingffi:ERROR:Failedtobuildgemnativeextension.C:/Ruby192/bin/ruby.exeextconf.rbcheckingforffi.h...nocheckingforffi.hin

ruby-on-rails - 名称错误 : uninitialized constant Factory

我正在关注thistutorial为了与工厂女孩、rspec一起开始使用TDDonrails,我遇到了这个问题,我无法理解。这是我的“工厂”.rb(events.rb)require'faker'FactoryGirl.definedofactory:eventdoname"HIGH"genre"house,techno,idb"venue_name"WestbourneStudios"venue_address"4-6ChamberlayneRoad"venue_postcode"NW103JD"begin_time"10pm"end_time"2am"user_id2descrip